$(function () {

    $("#back").click(function () {
        if (window.confirm("您确定要返回吗？")) {
            window.history.back(-1);
        }
    });
    $("#addNoticeDesc").click(function (){
        var noticeDesc = $("#desc").val();
        var systemnoticeadd = $("#submit").serialize();
        var noticeName = $("#noticeName").val();
        if (noticeDesc.trim()==null || noticeDesc.trim()==""){
            alert("更新公告信息不能为空！");
        }else if(noticeName.trim()==null || noticeName.trim()==""){
            alert("更新公告标题不能为空！");
        }else {
            if(window.confirm("您确定要添加系统更新公告吗?")){
                window.location.href = "systemnoticeadd?"+systemnoticeadd;
            }
        }
    })
})